<template>
	<view class="container">
		<view style="width: 100%;height: 20rpx;"></view>
		<view class="list_view">
			<view class="item_view" v-for="(item,index) in list" :key="index" @click="applyAction(index)">
				<view class="left_view">
					{{item}}
				</view>
				<view class="right_view">
					<u-icon name="arrow-right" label="查看" label-pos="left" color="#8A8A8A" size="24"
						label-color="#8A8A8A" label-size="24" @click="doorListAction()"></u-icon>
				</view>
			</view>
		</view>
		<view class="bottom_view">
			<view class="look_view" @click="lookApplyRecord">
				查看申请记录
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				list: ['门禁权限申请', '锁具权限申请']
			}
		},
		created() {},

		methods: {
			applyAction(index) {
				let routerName = index == 0 ? 'doorApply' : 'lockApply'
				this.$Router.push({
					name: routerName
				})
			},
			lookApplyRecord() {
				this.$Router.push({
					name: 'applyRecord'
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		width: 100%;
		min-height: 100vh;
		box-sizing: border-box;
		background-color: #F8F8F8;
	}

	.list_view {
		border-top: 1rpx solid #E8E8E8;

		.item_view {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			padding: 15px;
			background-color: #FFFFFF;
			border-bottom: 1rpx solid #E8E8E8;

			.left_view {
				display: flex;
				flex-direction: row;

				.content_view {
					margin-left: 10px;
				}
			}
		}
	}

	.bottom_view {
		width: 100%;
		height: 120rpx;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		align-items: center;
		background-color: #FFFFFF;
		border-top: 1rpx solid #E8E8E8;

		.look_view {
			width: 90%;
			height: 80rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			border-radius: 40rpx;
			background-color: #324DEC;
			color: #FFFFFF;
		}
	}
</style>